﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Engine.Components
{
   public class GameManager:BaseManager
    {
        GameClass.Characters characterControler;
        public GameManager(NOWAEngine _game, ComponentManager manager, bool nodel = false)
            : base(_game, manager, nodel)
        {

            // TODO: Complete member initialization
            characterControler = new GameClass.Characters(_game);
            GameClass.Player pl = new GameClass.Player(_game, "frist", 0);
            GameClass.BaseCharacter ch = new GameClass.BaseCharacter(_game, "sec", 1);
            characterControler.addPlayer(pl);
            characterControler.addPlayers(ch);
        }
        protected override void LoadContent()
        {

            base.LoadContent();
        }
        public override void Initialize()
        {
            characterControler.Initialize();
            base.Initialize();
        }
        public override void Update(Microsoft.Xna.Framework.GameTime gameTime)
        {
            characterControler.Update(gameTime);
            
            base.Update(gameTime);
        }    

    }
}
